package xyz.fuqufyb.aec.feign.theme;

import com.github.pagehelper.PageInfo;
import com.spingcloud.travel.common.TableResult;
import com.springcloud.travel.entity.Theme;
import org.apache.commons.io.FilenameUtils;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import xyz.fuqufyb.aec.fallback.ThemeFeignFallBack;


import java.io.IOException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@FeignClient(value = "TRAVEL-THEME",path = "/theme",fallback = ThemeFeignFallBack.class)
public interface ThemeFeign {

    /**
     * 主题管理的查询
     */
    @RequestMapping("/show")
    public TableResult<Theme> selectAllTheme(@RequestParam("map") Map<String, String> map);


    /**
     * 主题管理的增加
     */
    @RequestMapping("/add")
    public boolean add(@RequestBody Theme theme);

    /**
     * 主题管理的修改
     */
    @RequestMapping("/update")
    public boolean update(@RequestBody Theme theme);


    /**
     * 主题管理的删除
     */
    @RequestMapping("/delete")
    public boolean delete(@RequestParam("ids") String[]  ids);


}
